/**
 * 
 */
package vn.smartware.co.framework.common;

import org.eclipse.swt.SWT;
import org.eclipse.swt.graphics.Color;
import org.eclipse.swt.graphics.Font;
import org.eclipse.wb.swt.SWTResourceManager;



/**
 * Constant
 * 
 * @author thuctt
 */
public class BaseConstant {

	/**
	 * DEFAULT_EMPTY_DATE = 01-01-1900"
	 */
	public static final String DEFAULT_EMPTY_DATE = "01-01-1900";
	
	/**
	 * DEFAULT_EMPTY_DATETIME = 01-01-1900 00:00:00
	 */
	public static final String DEFAULT_EMPTY_DATETIME = "01-01-1900 00:00:00";
	
	/**
	 * Long format date pattern DD-MM-YYYY
	 */
	public static final String FMT_DATE_LONG = "dd-MM-yyyy hh:mm:ss";
	
	/**
	 * Short format date pattern DD-MM-YYYY
	 */
	public static final String FMT_DATE_SHORT = "dd-MM-yyyy";
	
	/**
	 * APP_SESSION = "application"
	 */
	public static final String APP_SESSION = "application";

	/**
	 * SESSION_SESSION = "session"
	 */
	public static final String SESSION_SESSION = "session";

	/**
	 * FAILURE
	 */
	public static final String FAILURE = "failure";

	/**
	 * SUCCESS
	 */
	public static final String SUCCESS = "success";
	
	/**
	 * CONFIG_SERVER_DIR = "/WEB-INF/classes/"
	 */
	public static final String CONFIG_SERVER_DIR = "/WEB-INF/classes/";
	
	/**
	 * SERVER_SYSTEM_RESOURCES_FILE = "/WEB-INF/classes/systemresources.ini"
	 */
	public static final String SERVER_SYSTEM_RESOURCES_FILE = "/WEB-INF/classes/systemresources.ini";
	
	/**
	 * CLIENT_SYSTEM_RESOURCES_FILE = "systemresources.ini"
	 */
	public static final String CLIENT_SYSTEM_RESOURCES_FILE = "systemresources.ini";
	
	/**
	 * EN_LANG_FILE = "en_SWTData.properties"
	 */
	public static final String EN_LANG_FILE = "en_SWTData.properties";
	
	/**
	 * VN_LANG_FILE = "vn_SWTData.properties"
	 */
	public static final String VN_LANG_FILE = "vn_SWTData.properties";
	
	/**
	 * SERVER_SIDE = 1
	 */
	public static final int SERVER_SIDE = 1;
	
	/**
	 * CLIENT_SIDE = 2
	 */
	public static final int CLIENT_SIDE = 2;
	
	/**
	 * COLOR_BGR_BASE = [234,234,234]
	 */
	public static final Color COLOR_BGR_BASE = SWTResourceManager.getColor(234, 234, 234);
	
	/**
	 * COLOR_BGR_LABEL = [204, 230, 255]
	 */
	public static final Color COLOR_BGR_LABEL = SWTResourceManager.getColor(232, 255, 251);
	
	/**
	 * COLOR_TEXT_REQUIRED = [250, 254, 200]
	 */
	public static final Color COLOR_TEXT_REQUIRED = SWTResourceManager.getColor(250, 254, 200);
	
	/**
	 * COLOR_TEXT_NORMAL = [255, 255, 255]
	 */
	public static final Color COLOR_TEXT_NORMAL = SWTResourceManager.getColor(255, 255, 255);
	
	/**
	 * COLOR_LINK_LABEL = [0, 0, 255]
	 */
	public static final Color COLOR_LINK_LABEL = SWTResourceManager.getColor(0, 0, 255);
	
	/**
	 * COLOR_LINK_LABEL_MOUSE_ENTER = [95, 200, 255]
	 */
	public static final Color COLOR_LINK_LABEL_MOUSE_ENTER = SWTResourceManager.getColor(50, 110, 255);
	
	/**
	 * COLOR_MENU_MOUSE_ENTER = [50, 110, 255]
	 */
	public static final Color COLOR_MENU_MOUSE_ENTER = SWTResourceManager.getColor(0, 0, 255);
	
	/**
	 * COLOR_MENU_MOUSE_MOVE = [100,0,0]
	 */
	public static final Color COLOR_MENU_MOUSE_MOVE = SWTResourceManager.getColor(100,0,0);
	
	/**
	 * COLOR_TABLE_ROW_EVEN = [233,255,226]
	 */
	public static final Color COLOR_TABLE_ROW_EVEN = SWTResourceManager.getColor(233,255,226);
	
	/**
	 * COLOR_TEXT_BGR_NOT_EDITABLE = [230,230,230]
	 */
	public static final Color COLOR_TEXT_BGR_NOT_EDITABLE = SWTResourceManager.getColor(230,230,230);
	
	/**
	 * COLOR_TABLE_ROW_NEW = [170,255,255]
	 */
	public static final Color COLOR_TABLE_ROW_NEW = SWTResourceManager.getColor(170,255,255);
	
	/**
	 * COLOR_TABLE_ROW_UPDATE = [255,212,255]
	 */
	public static final Color COLOR_TABLE_ROW_UPDATE = SWTResourceManager.getColor(255,212,255);
	
	/**
	 * COLOR_TABLE_ROW_DELETE = [42,127,255]
	 */
	public static final Color COLOR_TABLE_ROW_DELETE = SWTResourceManager.getColor(42,127,255);
	
	/**
	 * FONT_LABEL_SIZE = 11
	 */
	public static final int FONT_LABEL_SIZE = 10;
	
	/**
	 * LABEL_FONT_NAME = "Microsoft Sans Serif"
	 */
	public static final String LABEL_FONT_NAME = "Microsoft Sans Serif";
	
	/**
	 * FONT_BASE_LABEL
	 */
	public static final Font FONT_BASE_LABEL = SWTResourceManager.getFont(LABEL_FONT_NAME, FONT_LABEL_SIZE, SWT.NONE);
	
	/**
	 * FONT_LABEL_NAME_SIZE = 11
	 */
	public static final int FONT_LABEL_NAME_SIZE = 10;
	
	/**
	 * FONT_BASE_LABEL_NAME
	 */
	public static final Font FONT_BASE_LABEL_NAME = SWTResourceManager.getFont(LABEL_FONT_NAME, FONT_LABEL_NAME_SIZE, SWT.NONE);
	
	/**
	 * FONT_MENU
	 */
	public static final Font FONT_MENU = SWTResourceManager.getFont(LABEL_FONT_NAME, 9, SWT.NONE);
	
	/**
	 * FONT_BOLD_LABEL (Not Underline)
	 */
	public static final Font FONT_BOLD_LABEL = SWTResourceManager.getFont(LABEL_FONT_NAME, FONT_LABEL_SIZE, SWT.BOLD);
	
	/**
	 * FONT_LINK_LABEL (Underline)
	 */
	public static final Font FONT_LINK_LABEL = SWTResourceManager.getFont(LABEL_FONT_NAME, FONT_LABEL_SIZE, SWT.NONE, false, true);
	
	/**
	 * FONT_TEXT_SIZE = 11
	 */
	public static final int FONT_TEXT_SIZE = 10;
	
	/**
	 * TEXT_FONT_NAME = "Microsoft Sans Serif"
	 */
	public static final String TEXT_FONT_NAME = "Microsoft Sans Serif";
	
	/**
	 * FONT_BASE_LABEL
	 */
	public static final Font FONT_BASE_TEXT = SWTResourceManager.getFont(TEXT_FONT_NAME, FONT_TEXT_SIZE, SWT.NONE);
	
	/**
	 * FONT_BUTTON_SIZE = 11
	 */
	public static final int FONT_BUTTON_SIZE = 10;
	
	/**
	 * BUTTON_FONT_NAME = "Microsoft Sans Serif"
	 */
	public static final String BUTTON_FONT_NAME = "Microsoft Sans Serif";
	
	/**
	 * FONT_BASE_BUTTON
	 */
	public static final Font FONT_BASE_BUTTON = SWTResourceManager.getFont(BUTTON_FONT_NAME, FONT_BUTTON_SIZE, SWT.NONE);

	/**
	 * ACT_LOG_NAME_CLOSE = "CLOSE_ACT"
	 */
	public static final String ACT_LOG_NAME_CLOSE = "CLOSE_ACT";
	
	//====================== IMAGES START ======================================================
	private static final String IMAGE_PATH = "/vn/smartware/co/client/images/";
	
	/**
	 * IMG_SPLASH = splash.bmp
	 */
	public static final String IMG_SPLASH = IMAGE_PATH + "splash.bmp";
	
	/**
	 * IMG_SYSTEM_ICON = "icon_system.bmp"
	 */
	public static final String IMG_SYSTEM_ICON = IMAGE_PATH + "icon_system.bmp";
	
	/**
	 * IMG_SYNC_ICON = "synchronize.png"
	 */
	public static final String IMG_SYNC_ICON = IMAGE_PATH + "synchronize.png";
	
	/**
	 * IMG_SYSTEM_LOGO = "logo.bmp"
	 */
	public static final String IMG_SYSTEM_LOGO = IMAGE_PATH + "logo.bmp";
	//====================== IMAGES END ========================================================

	/**
	 * MAX_LOGIN_NUMBER = 5
	 */
	public static final int MAX_LOGIN_NUMBER = 5;

	/**
	 * ERR_USER_NAME_NOT_EXIST = "1"
	 */
	public static final String ERR_USER_NAME_NOT_EXIST = "1";
	
	/**
	 * ERR_ACCOUNT_NOT_EXIST = "2"
	 */
	public static final String ERR_ACCOUNT_NOT_EXIST = "2";

	/**
	 * NOT_DISP_AUTHOR = "0"
	 */
	public static final String NOT_DISP_AUTHOR = "0";

	/**
	 * TABLE_ROW_COUNT
	 */
	public static final String TABLE_ROW_COUNT = "TABLE_ROW_COUNT";

	/**
	 * LOCAL_PARAM
	 */
	public static final String LOCAL_PARAM = "LOCAL_PARAM";
	
	/**
	 * CLASS_ID_PREFIX
	 */
	public static final String CLASS_ID_PREFIX = "vn.smartware.co.client.";
}
